(()=>{"use strict";var e,t={9886:(e,t,o)=>{const n=window.wp.element,r=window.wp.domReady;var a=o.n(r);const i=window.wc.components,d=window.wp.i18n,s=window.ReactJSXRuntime,c=({options:e,initialValues:t})=>{const[o,r]=(0,n.useState)(t);return(0,n.useEffect)(()=>{document.body.dispatchEvent(new CustomEvent("dokan_product_category_picker_ready"))},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.TreeSelectControl,{value:o,onChange:e=>{const t=[e.pop()];document.body.dispatchEvent(new CustomEvent("dokan_product_category_picker_update",{detail:t})),r(t)},options:e,placeholder:(0,d.__)("Start typing to filter categories","dokan"),selectAllLabel:!1,individuallySelectParent:!0,maxVisibleTags:5}),(0,s.jsx)("input",{type:"hidden",name:"product_cat",value:o})]})};a()(()=>{const e=document.getElementById("dokan-geo-product-categories-root");if(e){var t;const o=e?.dataset?.selected,r=o?[o]:[],a=null!==(t=window.dokanGeoProductCategories.categories)&&void 0!==t?t:[];(0,n.createRoot)(e).render((0,s.jsx)(c,{initialValues:r,options:a}))}})}},o={};function n(e){var r=o[e];if(void 0!==r)return r.exports;var a=o[e]={exports:{}};return t[e](a,a.exports,n),a.exports}n.m=t,e=[],n.O=(t,o,r,a)=>{if(!o){var i=1/0;for(l=0;l<e.length;l++){for(var[o,r,a]=e[l],d=!0,s=0;s<o.length;s++)(!1&a||i>=a)&&Object.keys(n.O).every(e=>n.O[e](o[s]))?o.splice(s--,1):(d=!1,a<i&&(i=a));if(d){e.splice(l--,1);var c=r();void 0!==c&&(t=c)}}return t}a=a||0;for(var l=e.length;l>0&&e[l-1][2]>a;l--)e[l]=e[l-1];e[l]=[o,r,a]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={5670:0,6062:0};n.O.j=t=>0===e[t];var t=(t,o)=>{var r,a,[i,d,s]=o,c=0;if(i.some(t=>0!==e[t])){for(r in d)n.o(d,r)&&(n.m[r]=d[r]);if(s)var l=s(n)}for(t&&t(o);c<i.length;c++)a=i[c],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return n.O(l)},o=globalThis.webpackChunkdokan_pro=globalThis.webpackChunkdokan_pro||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var r=n.O(void 0,[6062],()=>n(9886));r=n.O(r)})();